package com.woniuxy.movie.cinema.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.movie.cinema.model.CinemaHall;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 * 影厅详情信息 Mapper 接口
 * </p>
 *
 * @author 刘存益
 * @since 2023年11月17日
 */
@Mapper
public interface CinemaHallMapper extends BaseMapper<CinemaHall> {

     @Insert("insert into cinema_hall values(null,#{hallName},#{hallState},#{hallMax})")
     @Options(useGeneratedKeys = true,keyProperty = "hallId",keyColumn = "hall_id")
     int insert(CinemaHall cinemaHall);

}
